home *** CD-ROM | disk | FTP | other *** search
- Path: winternet.com!not-for-mail
- From: jdege@winternet.com (Jeff Dege)
- Newsgroups: comp.lang.c++
- Subject: Re: Fastest Sorting Algorithm?
- Date: 10 Apr 1996 13:21:09 GMT
- Organization: StarNet Communications, Inc
- Message-ID: <4kgck5$98v@blackice.winternet.com>
- References: <Dou55w.7MB@novice.uwaterloo.ca> <DpAxtI.3w9@undergrad.math.uwaterloo.ca> <4k4unk$15qe@sol.caps.maine.edu> <4k680p$6fs@longwood.cs.ucf.edu> <4k6hdg$5ob@blackice.winternet.com> <316b7b66.13881382@news.newcastle.edu.au>
- NNTP-Posting-Host: tundra.winternet.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- On Wed, 10 Apr 1996 09:16:03 GMT, Richard Mazzaferri (mazz@faceng.newcastle.edu.au) wrote:
- :
- : Which of course (disregarding the fact that the algorithm fails to sort its
- : inputs at all) is O(n) - much slower than the claimed O(2log n) algorithm
- : :-)
-
- There's no such thing as O(2log n). Constant factors are removed in
- big-O notation. So if you ever see O(2log n) you can assume that the
- writer either made a type, or doesn't know what he's talking about.
-
- Meanwhile, the tricksort produces sorted output, which is all the spec
- (incorrectly) requires.
-
- --
- The customer proceeds to go through each change line-by-line.
- Excrutiating detail, which no logic can divine.
- And when it ends there's only four not sitting their agog:
- The customer, the manager, the pony and the dog.
-